package com.example.leetcode.backtrace;

import com.example.leetcode.backtrace.common.BackTraceUtils;

import java.util.List;

class Solution39 {
    public List<List<Integer>> combinationSum(int[] candidates, int target) {
        return BackTraceUtils.combinationSum(candidates, target);
    }
}

public class leetcode39 {
    public static void main(String[] args) {
        Solution39 solution39 = new Solution39();
        int[] candidates = {2,3,6,7};
        int target = 7;
        System.out.println(solution39.combinationSum(candidates, target).toString());

        int[] candidates1 = {2,3,5};
        int target1 = 8;
        System.out.println(solution39.combinationSum(candidates1, target1).toString());
    }
}
